import request from '@/utils/request'
// 频道-用户已选
export const userChannelListAPI = () => {
  return request({
    url: '/v1_0/user/channels'
  })
}

// 频道-所有
export const allChannelListAPI = () => {
  return request({
    url: '/v1_0/channels'
  })
}

// 频道-更新用户已选
export const updateChannelListAPI = ({ channels }) => {
  return request({
    url: '/v1_0/user/channels',
    method: 'PUT',
    data: {
      channels: channels
    }
  })
}
